Count

Initial Setup Properties

Common (Voice and Data)

Delta

IMaxCount

StartAt

Runtime Properties

Common (Voice and Data)

Counter

GotoNode

MaxCount

Methods

Common (Voice and Data)

TakeCall

 

 

Events

Common (Voice and Data)

Enter, EnterB

Exit

VoiceError

Overview

This control maintains an internal counter which can be reset and incremented by call-flow. It is useful for simple loops similar to the Visual Basic for .. to .. step .. construct.

When a call enters the Count control through the main input, an internal counter is reset to the start-from value and the call is passed directly to the control connected to the top output node (Reset). When a call enters through the second input, the Counter value is tested against the limit value. If Counter equals or has gone past the limit, the call is passed to node 2 (Limit), otherwise the Counter is incremented and the call is routed to node 1 (OK).

EXAMPLE

A limit of 5 means that on the fifth pass through the control, the call is routed to the Limit node.

The Limit node is treated in the same way as the Invalid node in the GetDigits control. That is, if the node is not connected, the invalid digit termination procedure is invoked. See Global Events.

NOTE: Like any other VBVoice control, the Counter is designed to work concurrently on multiple channels. The actual count is maintained independently for every channel and its value is significant within the context of that channel. Therefore, if three calls on three different channels passed through a Counter control (each call hitting the Counter's +1 input once), the Counter value will be 1 on each channel (not total of 3). Similarly, if channel 1 passes through the main input, the Counter's value will be reset only for channel 1, but it will not change for other channels.